#pragma once
//============================================================================
// Copyright (C) 2003-2013 Brett R. Jones 
// All Rights Reserved
//
// You may redistribute and/or modify for non commercial and commercial uses 
// provided this copyright notice remains in place and is not modified
//
// This code is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// brettjones1900@gmail.com
// http://www.p2panarchy.com
//============================================================================

#define RC_SYS_PKT_OFFER_MAX_SYSTEM_MSG_LEN		255

#pragma pack(push) 
#pragma pack(1)
class RcSysPktOfferSystemMsg
{
public:
	U16	m_u16PktLen;		
	U16	m_u16PktType;
	U16	m_u16State;
	unsigned char	m_au8Additional[ RC_SYS_PKT_OFFER_MAX_SYSTEM_MSG_LEN + 1 ];

	//=== constructor/destructor ===//
	RcSysPktOfferSystemMsg(){m_u16PktType = RC_SYS_PKT_TYPE_OFFER_SYSTEM_MSG; m_u16State = 1;  }
	void AddMsg( std::string & csMsg );
	void GetMsg( std::string & csMsg );
};

#pragma pack(pop)
